package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.OrgFatherAndChildEntity;

/**
 * Created by xu-jiaHui on 2017/4/9.
 */
public class OrgFatherAndChildDto {
    private Integer orgFatherAndChildId;
    private Integer orgId;
    private Integer mainOrgId;

    private String orgName; //公司名称

    public OrgFatherAndChildDto(Integer orgId, String orgName) {
        this.orgId = orgId;
        this.orgName = orgName;
    }


    public OrgFatherAndChildDto(Integer orgId, Integer mainOrgId) {
        this.orgId = orgId;
        this.mainOrgId = mainOrgId;
    }

    public Integer getOrgFatherAndChildId() {
        return orgFatherAndChildId;
    }

    public void setOrgFatherAndChildId(Integer orgFatherAndChildId) {
        this.orgFatherAndChildId = orgFatherAndChildId;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Integer getMainOrgId() {
        return mainOrgId;
    }

    public void setMainOrgId(Integer mainOrgId) {
        this.mainOrgId = mainOrgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public OrgFatherAndChildEntity toBean() {
        OrgFatherAndChildEntity orgFatherAndChildEntity = new OrgFatherAndChildEntity();
        orgFatherAndChildEntity.setOrgId(orgId);
        orgFatherAndChildEntity.setMainOrgId(mainOrgId);
        return orgFatherAndChildEntity;
    }
}
